
// components/ranking-item/ranking-item.js
Component({
  properties: {
    itemData:{
        type:Object,
        value:{}
    },
    key: {
       type:String,
       value:"" 
    }
  },
  methods:{
    onRankingItemTap() {
        const key = this.properties.key
        wx.navigateTo({
          url: `/pages/detail-song/detail-song?type=ranking&key=${key}`,
        })
    }
  }
})